<template>
<div class="hero-bottom">
  <div class="span4">
      <div class="item" :key="index" v-for="(item,index) of spanFour">
        <img :src="item.iconUrl" alt="">
        <span>{{item.title}}</span>
      </div>
  </div>
  <div class="item">
    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/5d4298059889417157e8492750328492.jpg?w=632&h=340" alt="">
  </div>
  <div class="item">
    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b30177d629bfbe2fb42251c1b8538f7b.jpg?w=632&h=340" alt="">
  </div>
  <div class="item">
    <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/793913688bfaee26b755a0b0cc8575fd.jpg?w=632&h=340" alt="">
  </div>
</div>
</template>

<script>
export default {
  name: "HomeHeroBottom",
  data(){
   return{
     spanFour:[
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/82abdba456e8caaea5848a0cddce03db.png?w=48&h=48',
         title:'小米秒杀'
       },
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/806f2dfb2d27978e33fe3815d3851fa3.png?w=48&h=48',
         title:'企业团购'
       },
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/eded6fa3b897a058163e2485532c4f10.png?w=48&h=48',
         title:'F码通道'
       },
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/43a3195efa6a3cc7662efed8e7abe8bf.png?w=48&h=48',
         title:'米粉卡'
       },
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/f4846bca6010a0deb9f85464409862af.png?w=48&h=48',
         title:'以旧换新'
       },
       {
         iconUrl:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/9a76d7636b08e0988efb4fc384ae497b.png?w=48&h=48',
         title:'话费充值'
       }
     ]
   }
  }
}
</script>

<style scoped lang="scss">
.hero-bottom{
  margin-top: 14px;
  height: 170px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  .span4{
    width: 234px;
    height: 100%;
    background-color: #5F5750;
    display: flex;
    flex-wrap: wrap;
    .item{
        width: 33.3%;
      height: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: relative;
      &:hover{
       img,span{
         filter:brightness(100%);
         transition: all 0.2s;
       }
      }
      &:after{
        content: '';
        position: absolute;
        right: 0;
        width: 1px;
        height: 70px;
        background-color: #665e57;

      }
      &:before{
        content: '';
        position: absolute;
        bottom: 0;
        height: 1px;
        width: 70px;
        background-color: #665e57;

      }
      img{
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        filter:brightness(80%);
        transition: all 0.2s;
      }
      span{
        color: white;
        font-size: 12px;
        filter:brightness(80%);
        transition: all 0.2s;
      }
    }
  }
  >.item{
    width: 316px;
    height: 100%;
    transition: all 0.5s;
    &:hover{
      box-shadow: 0 10px 20px 0 #d9d9d9;
      transition: all 0.5s;
    }
    img{
      width: 100%;
      height: 100%;
    }
  }
}
</style>